home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
viewers
/
polyview
/
hdf-ucd.lha
/
HDF-UCD
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-03-19
|
2KB
|
84 lines
# ##################################################################
#
# NCSA HDF UCD Library release 1.0 beta
# February 1992
#
# MAKEFILE for creating the vset library, libucd.a,
#
#
# Author:
# Nataraj Akkiraju,
# Ping Fu
#
# Portions developed at the National Center for Supercomputing
# Applications at the University of Illinois at Urbana-Champaign.
#
# ##################################################################
#
# PORTING INSTRUCTIONS
# You must modify the numbered lines.
#
# (1) specify your machine
MACHINE=IRIS4
# (2) specify your fortran compiler (not for this beta release)
F77=f77
FFLAGS= -c
# (3) where are your df.h and dfi.h files located?
IFLAGS= /usr/include
# (4) where is your HDF library (libvg.a and libdf.a) located?
LIBS= /usr/lib/libvg.a /usr/lib/libdf.a
OFILES=brick.o facetedge.o util.o
CFLAGS= -g -D${MACHINE} -I${IFLAGS} -I.
# Creating libucd.a
libucd.a: $(OFILES)
# (6) modify your archiver (eg ranlib, or ar)
ar cr libucd.a $(OFILES)
@echo "libucd.a successfully created."
brick.o: brick.c brick.h main.h
cc $(CFLAGS) -c brick.c
facetedge.o : facetedge.c facetedge.h basetype.h
cc -c -g facetedge.c
util.o : util.c util.h basetype.h
cc -c -g util.c
# test file type 1 coil, heatpipe, vdyna
maketest1 : test1.o
cc -DIRIS4 test1.o -g libucd.a $(LIBS) -lm -o maketest1
cd data; ../maketest1
test1.o : test1.c test1.h brick.h
cc -c -g -DIRIS4 test1.c libucd.a $(LIBS) -lm
# test file test type 2 regmesh, fmc1,2
maketest2 : test2.o
cc -DIRIS4 test2.o -g libucd.a $(LIBS) -lm -o maketest2
cd data; ../maketest2
test2.o : test2.c test2.h brick.h
cc -c -g -DIRIS4 test2.c libucd.a $(LIBS) -lm
# test file sine.c
makesine : sine.o
cc -DIRIS4 sine.o -g libucd.a $(LIBS) -lm -o makesine
cd data; ../makesine
sine.o : sine.c brick.h
cc -c -g -DIRIS4 sine.c libucd.a $(LIBS) -lm
clean:
rm *.o maket* makes* data/*.vset